import { defineStore } from 'pinia';
import type { RowType } from '@/types/station';
import { ref } from 'vue';

export const useStationStore = defineStore('station', () => {
    const rowData= ref<RowType>({name: '',
        id: '',
        city: '',
        fast: '',
        slow: '',
        status: 1,
        now: '',
        fault: '',
        person: '',
        tel: '',})

        const setRowData = (row:RowType)=>{
            rowData.value = row
            console.log("👿 ~ 执行了setRowData ~ rowData.value:", rowData.value)
        }

        return {rowData,setRowData}
});

